﻿namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [Serializable]
    public class ClickImgNParam:BaseParam {
        //0左键、1右键
        private int buttonType;
        //0单机、1双击
        private int clickType;
        //搜索范围0整个屏幕，1窗口对象、2当前激活窗口（目前只支持整个屏幕）
        private int searchArea;
        //需要搜寻的图像路径
        private string imagePath = "";

        public string ImagePath {
            get => imagePath; 
            set { 
                imagePath = value;
                NotifyPropertyChanged("ImagePath");
            }  
        }

        public int SearchArea {
            get => searchArea; 
            set { 
                searchArea = value;
                NotifyPropertyChanged("SearchArea");
            }  
        }
        public int ButtonType {
            get => buttonType; 
            set { 
                buttonType = value;
                NotifyPropertyChanged("ButtonType");
            }  
        }
         public int ClickType {
            get => clickType; 
            set { 
                clickType = value;
                NotifyPropertyChanged("ClickType");
            }  
        }

        public string GetTranslateButtonType() {
            switch(this.buttonType) {
                case 0:
                    return "左键";
                case 1:
                    return "右键";
                default : return "左键";
            }
        }
        public string GetTranslateClickType() {
            switch(this.clickType) {
                case 0:
                    return "单击";
                case 1:
                    return "双击";
                default : return "单击";
            }
        }
        public string GetTranslateSearchArea() {
            switch(this.searchArea) {
                case 0:
                    return "整个屏幕";
                case 1:
                    return "特定窗口";
                case 2:
                    return "当前激活窗口";
                default : return "整个屏幕";
            }
        }
    }
}
